import { ApiProperty } from '@nestjs/swagger'
import { IsNotEmpty } from 'class-validator'

export class CreateUserDto {
  @IsNotEmpty()
  @ApiProperty({ example: '明皇' })
  name: string

  @IsNotEmpty()
  @ApiProperty({ example: 'minghuang' })
  username: string

  @IsNotEmpty()
  @ApiProperty({ example: '123456' })
  password: string

  @IsNotEmpty()
  @ApiProperty({ example: 'Tim' })
  enName?: string

  @ApiProperty({ example: '15845551@qq.com' })
  @IsNotEmpty()
  email: string

  @ApiProperty({ example: '' })
  avatar?: string

  @ApiProperty({ example: '' })
  mobile?: string

  @ApiProperty({ example: '研发部' })
  departmentName?: string

  @ApiProperty({ example: 1 })
  departmentId?: number
}
